/*
 * @Descripttion:
 * @version:
 * @Author: captern@icloud.com
 * @Date: 2023-05-09 10:03:59
 * @LastEditors: captern
 * @LastEditTime: 2023-05-09 10:46:40
 */
import type { ExtractPropTypes } from 'vue'
export interface CommonComponentProps {
  // 行为
  actionType: string
  url: string
  // 尺寸
  height: string
  width: string
  paddingLeft: string
  paddingRight: string
  paddingTop: string
  paddingBottom: string
  // 边框样式
  borderStyle: string
  borderColor: string
  borderWidth: string
  borderRadius: string
  // 阴影 透明度
  boxShadow: string
  opacity: string
  // 位置
  position: string
  left: string
  top: string
  right: string
}

export interface TextComponentProps extends CommonComponentProps {
  text: string
  fontSize: string
  fontFamily: string
  fontWeight: string
  fontStyle: string
  textDecoration: string
  lineHeight: string
  textAlign: string
  color: string
  backgroundColor: string
}

export interface ImageComponentProps extends CommonComponentProps {
  src?: string
}

export declare type AllComponentProps = TextComponentProps & ImageComponentProps
